<?php


class AMS_Core_Model_Db extends AMS_Core_Model_Abstract {
    protected $_hostname = 'localhost';
    protected $_username = 'root';
    protected $_password = '';
    protected $_database = 'ams';
    protected $_linkId;
    protected $select;
    
    public function __construct() {
        $adapter = Zend_Db::factory('pdo_mysql',array(
            'hostname'  => $this->_hostname,
            'username'  => $this->_username,
            'password'  => $this->_password,
            'dbname'    => $this->_database,
            'charset'   => 'utf-8'
            ));
        $this->select = new Zend_Db_Select($adapter);
    }
    
    public function getSelect() {
        return $this->select;
    }
}
